<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>用户登录</title>
    <link rel="stylesheet" type="text/css" href="/css/style-login.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/vector.js"></script>
</head>
<body >
<img src="http://b.zol-img.com.cn/desk/bizhi/start/3/138199158288.jpg" width="100%" height="100%">
<div id="container" >
    <div id="output">
        <div class="containerT">
            <h1 style="color: white">用户登录</h1>
            <form class="form" id="entry_form" method="post" action="/index">
                <#-- 加入CSRF令牌，Spring Security提供。 -->
                <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
                <input type="text" placeholder="用户名" id="adminName" name="username" value="chen">
                <input type="password" placeholder="密码"  name="password" id="password">
                <h3 style="text-align: center"><a href="/update" style="color: white">没有账号，点击注册</a></h3>
                <button type="submit"  id="entry_btn" style="margin-top: 5px">登录</button>
                <div id="prompt" class="prompt"></div>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(function(){
 //登录背景函数
        $("#adminName").focus();
        $(document).keydown(function(event){
            if(event.keyCode==13){
                $("#entry_btn").click();
            }
        });
    });
</script>
</body>
</html>